user-chroot: Add --unshare-pid, --unshare-net, and --mount-proc
authorColin Walters <walters@verbum.org>
Wed, 7 Dec 2011 15:52:42 +0000 (10:52 -0500)
committerColin Walters <walters@verbum.org>
Wed, 7 Dec 2011 15:52:42 +0000 (10:52 -0500)
commit15d23546ffae875d758ade21bf1b47c8e8777e22
tree346d81c5e81f43f1ae0fd619ced7427b18ddb9ac
parentfbb09d71a663badb51f8bb66769f251112f84e8a
user-chroot: Add --unshare-pid, --unshare-net, and --mount-proc

To use CLONE_NEWPID we have to actually call clone() because it's
not supported by unshare().

To enable CLONE_NEWPID to be useful, we have to allow creating a new
proc mount rather than binding an existing one.
src/ostbuild/ostbuild-user-chroot.c